package com.hippo.provider.config;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName WechatConfig
 * @Description TODO 微信配置文件
 * @Author tangxl
 * @create 2023-04-03 18:48
 **/
@ConfigurationProperties(prefix = "wechat")
@Data
@Configuration
@Schema(name = "微信配置文件")
public class WechatConfig {
    @Schema(name = "微信公众账号或开放平台APP的唯一标识", example = "wx2421b1c4370ec43b")
    private String appId;
    @Schema(name = "微信公众账号或开放平台APP的密钥", example = "db426a9829e4b49a0dcac7b4162da6b6")
    private String appSecret;
    @Schema(name = "财付通平台的商户账号", example = "1473426802")
    private String partner;
    @Schema(name = "财付通平台的商户密钥", example = "T6m9iK73b0kn9g5v426MKfHQH7X8rKwb")
    private String partnerkey;
    @Schema(name = "微信支付方式", example = "JSAPI")
    private String tradeType;
    @Schema(name = "统一下单地址", example = "https://api.mch.weixin.qq.com/pay/unifiedorder")
    private String payUrl;
    @Schema(name = "查询订单地址", example = "https://api.mch.weixin.qq.com/pay/orderquery")
    private String queryUrl;
    @Schema(name = "关闭订单地址", example = "https://api.mch.weixin.qq.com/pay/closeorder")
    private String closeUrl;
    @Schema(name = "申请退款地址", example = "https://api.mch.weixin.qq.com/secapi/pay/refund")
    private String refundUrl;
    @Schema(name = "查询退款地址", example = "https://api.mch.weixin.qq.com/pay/refundquery")
    private String refundQueryUrl;
    @Schema(name = "下载对账单地址", example = "https://api.mch.weixin.qq.com/pay/downloadbill")
    private String downloadBillUrl;
    @Schema(name = "微信支付回调地址", example = "http://www.itcast.cn")
    private String notifyurl;
    @Schema(name = "微信退款回调地址", example = "http://www.itcast.cn")
    private String refundNotifyUrl;
    @Schema(name = "微信公众号授权地址", example = "https://open.weixin.qq.com/connect/oauth2/authorize")
    private String authorizeUrl;
    @Schema(name = "微信公众号授权回调地址", example = "http://www.itcast.cn")
    private String authorizeReturnUrl;
    @Schema(name = "微信公众号授权获取用户信息地址", example = "https://api.weixin.qq.com/sns/userinfo")
    private String userInfoUrl;
    @Schema(name = "微信获取openID", example = "https://api.weixin.qq.com/sns/oauth2/access_token")
    private String openIdUrl;
}
